package com.cqgc.service;

import com.cqgc.domain.Barn;
import com.cqgc.domain.Harvest;
import com.cqgc.domain.PageHelper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BarnService {
    List<Barn> findAll(PageHelper pageHelper);

    List<Barn> findAllBarn();

    Barn findBarnByBid(int bid);

    int editBarn(@Param("barn") Barn barn);

    int addBarn(@Param("barn") Barn barn);

    int deleteBarn(@Param("barn") Barn barn);

    int banBarn(@Param("barn") Barn barn);
}
